<?php
$uid = $_POST['uid'];
include ("conn.php");
//下面是读取数据
$sql = "SELECT * FROM pageList WHERE auid=".(int)$uid;
$result = $conn->query($sql);
$arr = array(); 
if ($result->num_rows > 0) {
    // 输出数据
    while($row = $result->fetch_assoc()) {
        array_push($arr,array((int)$row["id"],$row["title"],$row["class"],$row["time"],$row["likeNum"],(int)$row["type"]));
    }
}
echo json_encode($arr); 
?>